import QtQuick 2.7
import QtQuick.Controls 1.4
import "widget"
import "styles"

TabView{
    id:tabView
    visible: true
    width:375
    height:667
    tabPosition: Qt.BottomEdge
    tabsVisible: true

    IconTab {
        icon:"qrc:/img/work-09.png"
        title: "固定资产"
        onLoaded:{
            this.item.changeIsIndex.connect(tabView.changeVisable)
        }
        source:"Ins.qml"
    }
    IconTab {
        icon:"qrc:/img/work-10.png"
        title: "车辆"
        onLoaded:{
            this.item.changeIsIndex.connect(tabView.changeVisable)
        }
        source:"Car.qml"
    }
    IconTab {
        icon:"qrc:/img/work-12-active.png"
        title: "工作"
        source: "Work.qml"
        onLoaded:{
            this.item.changeIsIndex.connect(tabView.changeVisable)
        }
    }
    IconTab {
        icon:"qrc:/img/work-11.png"
        title: "我的"
        onLoaded:{
            this.item.changeIsIndex.connect(tabView.changeVisable)
        }
        source:"My.qml"
    }

    style: IconTabViewStyle{}

    function changeVisable(isIndex){
        tabView.tabsVisible = isIndex
    }
}
